import { Module } from '@nestjs/common';
import { UserController } from './user.controller';
import { UserService } from './user.service';
import { LogModule } from '../log/log.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from './user.entity';
import { Role } from '../role/role.entity';
import { LoginController } from './login/login.controller';
import { LoginService } from './login/login.service';
import { ToolsModule } from '../tools/tools.module';
import { RedisUtilsModule } from '../redis-utils/redis-utils.module';
import { NestLogModule } from '@juliana_mewo/nest-log';

@Module({
  imports: [NestLogModule.register('user---'),TypeOrmModule.forFeature([
    User,
  ]), TypeOrmModule.forFeature([
    Role,
  ]), LogModule.register('user'), ToolsModule, RedisUtilsModule],
  controllers: [UserController, LoginController],
  providers: [
    UserService,
    LoginService,
  ],
})
export class UserModule {
}
